<?php
/**
 * Created by PhpStorm.
 * User: hedx
 * Date: 2016/4/15
 * Time: 9:43
 */

namespace business\search\models;


use yii\mongodb\ActiveRecord;

/**
 * Class SearchHotModel
 * @package business\search\models
 *
 * @property string searchModule
 * @property string keyword
 * @property int count
 */
class SearchHotModel extends ActiveRecord
{

    public static function collectionName()
    {
        return ["b2b_search", "searchHot"];
    }

    public function attributes()
    {
        return [
            '_id',
            'searchModule',
            'keyword',
            'count',
        ];
    }

}